package com.lsl.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
@TableName("blog")
public class Blog implements java.io.Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String content;

    private String author;

    @TableField("songID")
    private String songID;

    @TableField("songKeyword")
    private String songKeyword;

    @TableField("postDate")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date postDate;

    @TableField("upVotes")
    private Integer upVotes;

    @TableField("downVotes")
    private Integer downVotes;

}
